<?php
$db_class = pc_base::load_model('classmany_model');
$db_team = pc_base::load_model('team_model');
$db_people = pc_base::load_model('people_model');
?>
{template "member","header"}

<!-- header -->
<header class="header bg2 clearfix">
<h3 class="fl"><a href="{MEMBER_PATH}" title="返回上一级"><img src="{IMG_PATH2}icon/back.png" alt="返回上一级"></a></h3>
<span class="con">我的课程</span>
</header>
<!-- / header -->
<div class="h_48"></div>

<script src="{JS_PATH2}tab.js"></script>
<script type="text/javascript">
$(function() {
	$(".content").all_tab({
		effect: "fade",
		trigger: "click",
		delayTime: 10
	});
});
</script>
<main class="main ">
<div class="content">
	<ul class="nav_course1 tab clearfix">
		<li><a href="javascript:;">审核中</a></li>
		<li><a href="javascript:;">已成功</a></li>
		<li><a href="javascript:;">未通过</a></li>
	</ul>
	<!-- 预约中 -->
	<div class="h_5"></div>
	<section class="tab_con">
	<ul class="oListclass">
{loop $arr_0 $c_one}
{php $class=$db_class->pkhs($c_one[a_id])}
{php $team=$db_team->pkhs($class[one_team])}
{php $teacher=$db_people->pkhs($class[one_teacher])}
		<li><a href="{$class[url]}">
			<div class="oListclasstime">
				<span class="time1 fl">{date('Y-m-d',$class[class_time1])}</span>
				<span class="peo fr">{$class[num_view]}</span>
			</div>
			<div class="oListclasscon clearfix">
				<div class="pic1 fl"><img src="{$class[thumb]}"><em>席位：{$class[student_limit]}</em></div>
				<div class="oListclasscon_rg">
					<div class="oListclasscon_rg_t">{$class[title]}</div>
					<div class="oListclasscon_rg_name">{$team[title]}<?=v2html($team[v])?></div>
					<div class="oListclasscon_rg_teacher clearfix">
						<!-- <span class="fl">讲师：{$teacher[title]}</span> -->
						<div class="oListclasscon_rg_teacher_price fl">
							{if $class[price_cut]}
								<i>￥{price2cn($class[price_cut])}</i>
							{else}
								<i class="free">免费</i>
							{/if}

							<em>{price2cn($class[price_base])}</em>
						</div>
					</div>
				</div>
			</div>
		</a></li>
{/loop}
	</ul>
	</section>
	<!-- 已成功 -->
	<section class="tab_con">
	<ul class="oListclass">
{loop $arr_1 $c_one}
{php $class=$db_class->pkhs($c_one[a_id])}
{php $team=$db_team->pkhs($class[one_team])}
{php $teacher=$db_people->pkhs($class[one_teacher])}
		<li><a href="{$class[url]}">
			<div class="oListclasstime">
				<span class="time1 fl">{date('Y-m-d',$class[class_time1])}</span>
				<span class="peo fr">{$class[num_view]}</span>
			</div>
			<div class="oListclasscon clearfix">
				<div class="pic1 fl"><img src="{$class[thumb]}"><em>席位：{$class[student_limit]}</em></div>
				<div class="oListclasscon_rg">
					<div class="oListclasscon_rg_t">{$class[title]}</div>
					<div class="oListclasscon_rg_name">{$team[title]}<?=v2html($team[v])?></div>
					<div class="oListclasscon_rg_teacher clearfix">
						<!-- <span class="fl">讲师：{$teacher[title]}</span> -->
						<div class="oListclasscon_rg_teacher_price fl">
							{if $class[price_cut]}
								<i>￥{price2cn($class[price_cut])}</i>
							{else}
								<i class="free">免费</i>
							{/if}
							<em>{price2cn($class[price_base])}</em>
						</div>
					</div>
				</div>
			</div>
		</a></li>
{/loop}
	</ul>
	</section>
	<!-- 未完成 -->
	<section class="tab_con">
	<ul class="oListclass">
{loop $arr_2 $c_one}
{php $class=$db_class->pkhs($c_one[a_id])}
{php $team=$db_team->pkhs($class[one_team])}
{php $teacher=$db_people->pkhs($class[one_teacher])}
		<li><a href="{$class[url]}">
			<div class="oListclasstime">
				<span class="time1 fl">{date('Y-m-d',$class[class_time1])}</span>
				<span class="peo fr">{$class[num_view]}</span>
			</div>
			<div class="oListclasscon clearfix">
				<div class="pic1 fl"><img src="{$class[thumb]}"><em>席位：{$class[student_limit]}</em></div>
				<div class="oListclasscon_rg">
					<div class="oListclasscon_rg_t">{$class[title]}</div>
					<div class="oListclasscon_rg_name">{$team[title]}<?=v2html($team[v])?></div>
					<div class="oListclasscon_rg_teacher clearfix">
						<!-- <span class="fl">讲师：{$teacher[title]}</span> -->
						<div class="oListclasscon_rg_teacher_price fl">
							{if $class[price_cut]}
								<i>￥{price2cn($class[price_cut])}</i>
							{else}
								<i class="free">免费</i>
							{/if}
							<em>{price2cn($class[price_base])}</em>
						</div>
					</div>
				</div>
			</div>
		</a></li>
{/loop}
	</ul>
	</section>
</div>
</main>
<!-- / main -->

<div class="h_48"></div>
{template "member","footer_nav"}

{template "member","footer"}